home *** CD-ROM | disk | FTP | other *** search
/ Windows News 2010 Summer - Disc 1 / WN_Ete2010_CD1.iso / Onglet5 / Weezo / Weezo setup.exe / {code_appDir} / www / local / regOK.php < prev    next >
PHP Script  |  2010-05-19  |  2KB  |  59 lines

  1. <?php
  2. /**
  3.  * New weezo version available message box
  4.  *
  5.  *
  6.  *
  7.  * PHP version 5
  8.  *
  9.  * LICENSE: This source file is subject to version 3.0 of the PHP license
  10.  * that is available through the world-wide-web at the following URI:
  11.  * http://www.php.net/license/3_0.txt.  If you did not receive a copy of
  12.  * the PHP License and are unable to obtain it through the web, please
  13.  * send a note to license@php.net so we can mail you a copy immediately.
  14.  *
  15.  * @category   NA
  16.  * @package    NA
  17.  * @author     Nicolas Bruley / Peer 2 World <contact@weezo.net>
  18.  * @copyright  2005-2009 Nicolas Bruley / Peer 2 World
  19.  * @license    http://www.php.net/license/3_0.txt  PHP License 3.0
  20.  * @version    CVS: $Id:$
  21.  * @link       http://www.weezo.net
  22.  * @since      File available since Release 1.0.0
  23.  */
  24.  
  25. // Initialize script data
  26. require_once('localFunctions.php');
  27. lfInit();
  28.  
  29. if(!file_exists(cfAppDataDir().'/reg.ini')) {
  30.     cfInsertHEAD();
  31.     die('<body onload="wl.UICommand(\'close\')"></body>');
  32. }
  33. $regInfo=cfParse_ini_file(cfAppDataDir().'/reg.ini');
  34. if(!isset($regInfo['regName'])) {
  35.     cfInsertHEAD();
  36.     die('<body onload="wl.UICommand(\'close\')"></body>');
  37. }
  38.  
  39. $siteAdress='<center><a href="'.DNS_SITE.'/'.$regInfo['regName'].'" target="_blank" style="text-decoration:underline; font-weight:bold">'.DNS_SITE.'/'.$regInfo['regName'].'</a></center><br/><br/>';
  40.  
  41.  
  42. cfInsertHEAD(false);
  43. ?>
  44. <meta width="500x270">
  45. </head>
  46. <body width="500" height="270" title="Weezo" oncontextmenu="return false;">
  47. <?php
  48. echo outDivFrame('frame2',false,'margin-top:10px');
  49. echo outImage(outIcon('appIcon'),false,false,'float:left; margin-right:2em; margin-bottom:1em');
  50. echo cfCaption('newAccountCreated', $siteAdress);
  51.  
  52. // Save / Cancel buttons
  53.     echo '<div style="position:relative; top:-4px; text-align:center; width:100%">'.outButton(cfCaption('genOK'),'javascript:wl.UICommand(\'close\')',outIcon('ok'));
  54.     echo '</div></div>';
  55. ?>
  56. <script type="text/javascript">
  57. wl.UICommand('fadeSize','500x270');
  58. </script>
  59. </body></html>